#include "Mouse.hpp"

namespace ygg
{

Mouse::Button Mouse::getButtonFromGLFW(int button)
{
	switch(button)
	{
		case GLFW_MOUSE_BUTTON_LEFT:
			return Mouse::LEFT;
		case GLFW_MOUSE_BUTTON_RIGHT:
			return Mouse::RIGHT;
		case GLFW_MOUSE_BUTTON_MIDDLE:
			return Mouse::MIDDLE;
	}
}

Mouse::ButtonState Mouse::getStateFromGLFW(int action)
{
	switch(action)
	{
		case GLFW_PRESS:
			return Mouse::PRESS;
		case GLFW_RELEASE:
			return Mouse::RELEASE;
	}
}

}